package com.yunhe.policyfulfillment.policyful.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@ApiModel("新闻公告表")
public class PolicyInfoNews {
    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("简介")
    private String introduction;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("发布时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date publishTime;

    @ApiModelProperty("发布人")
    private Long publishPerson;

    @ApiModelProperty("发布人名称")
    private String publishPersonName;

    @ApiModelProperty("更新人")
    private Long updatePerson;

    @ApiModelProperty("更新人名称")
    private String updatePersonName;

    @ApiModelProperty("是否热门 01 热门 02 非热门")
    private String isHot;

    @ApiModelProperty("是否新 01 新 02 非新")
    private String isNew;

    @ApiModelProperty("是否置顶 01 置顶 02 非置顶")
    private String isTop;

    @ApiModelProperty("上线状态 01 上线 02 非上线")
    private String isOnline;

    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty(value = "是否删除")
    private String isDelete = "0";
}